package com.ccs.demo.server;


import com.ccs.demo.mapper.UserInfoMapper;
import com.ccs.demo.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

//@Service
//public class UserService {
//
//    @Autowired
//    private UserInfoMapper userInfoMapper;
//
//    public List<UserInfo> selectAll(){
//        return userInfoMapper.selectAll();
//    }
//}

@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public List<UserInfo> selectAll(){
        return userInfoMapper.selectAll();
    }





}
